package com.sdcqjy.property.base;

/**
 * Created by 磁磁帅 on 2017/9/5.
 * 描述：
 */
public interface BaseContract {
    interface BaseView {
        public void openLoadDialog();//开启对话框

        public void dismissDialog();//关闭对话框

        public void applyError(String t);//执行错误提示

        public void applyError(int tResId);//执行错误提示
    }

    class Presenter<T extends BaseView> {
        protected T baseView;

        public Presenter(T baseView) {
            this.baseView = baseView;
        }

        public void onDestroy() {//销毁
            baseView = null;
        }
    }
}
